<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BSStatus
 *
 * @author jianfeng
 */
class BSStatus extends BSEntity {

    const Status_Deleted = 'deleted';

    //put your code here
    public $name = 'no-name';

    public function initBeforeLoad($data = NULL) {
        if ($data != 'notInitBeforeLoad') {
            parent::initBeforeLoad($data);
            self::initInput();
        }
    }

    public static function initInput($data = NULL) {
        parent::initBeforeLoad($data);

        $s = new BSStatus(notInitBeforeLoad);
        $s->name = 'deleted';
        $s->save();
    }

}
